import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SAchievement } from "./SAchievement";
type int = number;
//class SAchievementType
    
    export  class SAchievementType extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SAchievementType();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.category);
            arg1.writeInt(this.type);
            arg1.writeBool(this.end);
            this.curAchievements.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.category = arg1.readInt();
            this.type = arg1.readInt();
            this.end = arg1.readBool();
            this.curAchievements = new SAchievement();
            this.curAchievements.__read(arg1);
            return;
        }

        public /* const */_type: int=12360;

        public /* var */category: int;

        public /* var */type: int;

        public /* var */end: Boolean;

        public /* var */curAchievements: SAchievement;

        public static /* var */_regist: SAchievementType;
    }

            SAchievementType._regist = new SAchievementType(true);
        